package com.css.basebusiness;


import com.css.common.swagger.config.annotation.EnableCustomKnife4;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableDiscoveryClient  // 关键注解
@EnableFeignClients
@Configuration
@MapperScan("com.css.basebusiness.dal.**.mapper")
@SpringBootApplication(scanBasePackages = { "com.css.basebusiness"})
@ComponentScan(basePackages = {
        "com.css.basebusiness",
        "com.css.common.security.config",
        "com.css.common.core"
})
@EnableScheduling
@EnableCustomKnife4
public class BaseBusinessApplication {
    public static void main(String[] args) {
        SpringApplication.run(BaseBusinessApplication.class, args);
    }
}
